import Layout from '@/layout'

const cardRouter = {
  path: '/purchase',
  component: Layout,
  redirect: '/purchase/entry',
  name: 'Purchase',
  meta: {
    title: '采购管理',
  },
  children: [
    {
      path: 'entry', 
      name: 'Entry',
      meta: { title: '采购入库单' },
      component: () => import('@/views/purchase/index'),
    },
    {
      path: 'purchase_pay_order', 
      name: 'PurchasePayOrder',
      meta: { title: '采购付款单' },
      component: () => import('@/views/purchase/purchase_pay_order'),
    },
    {
      path: 'purchase_return', 
      name: 'PurchaseReturn',
      meta: { title: '采购退货' },
      component: () => import('@/views/purchase/purchase_return'),
    },
    {
      path: 'purchase_bill',
      name: 'PurchaseBill',
      meta: { title: '采购对账单' },
      component: () => import('@/views/purchase/purchase_bill'), 
    },

  ]
}

export default cardRouter